package com.heima.wemedia.contyoller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUserDto;
import com.heima.wemedia.service.WmUserDtoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
public class LoginController {
    @Autowired
    private WmUserDtoService wmUserDtoService;
    @PostMapping("/in")
    @ApiOperation("Wemedia端登录接口")
    public ResponseResult login(@RequestBody WmUserDto dto) {
        return wmUserDtoService.login(dto);
    }
}
